import java.util.Scanner;

public class demo8 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入年龄：");
        int num=input.nextInt();
        if (100<num||num<1){
            throw new RuntimeException("年龄必须在1-100之间");
        }
    }
}
